import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index'
import login from '@/components/login'
import staff from '@/components/module/user/staff'
import ask from '@/components/module/user/ask'
import userchange from '@/components/module/user/userchange'
import personalInformation from '@/components/module/user/personalInformation'
import depart from '@/components/module/depart/depart'
import message from '@/components/module/message/message'
import salary from '@/components/module/salary/salary'
import job from '@/components/module/job/job'
import performance from '@/components/module/salary/performance'
import record from '@/components/module/record/record'
import root from '@/components/module/root/root'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: login
    },{
      path: '/staff',
      name: 'staff',
      component: staff
    },{
      path: '/depart',
      name: 'depart',
      component: depart
    },{
      path: '/message',
      name: 'message',
      component: message
    },{
      path: '/salary',
      name: 'salary',
      component: salary
    },{
      path: '/performance',
      name: 'performance',
      component: performance
    },{
      path: '/personalInformation',
      name: 'personalInformation',
      component: personalInformation
    },{
      path: '/job',
      name: 'job',
      component: job
    },{
      path: '/ask',
      name: 'ask',
      component: ask
    },{
      path: '/userchange',
      name: 'userchange',
      component: userchange
    },{
      path: '/record',
      name: 'record',
      component: record
    },{
      path: '/root',
      name: 'root',
      component: root
    }
    
  ]
})